import request from '@/utils/request'

export function getCompanies (params) {
  return request({
    url: '/api/Platform/CompanyComplete/GetCompanies',
    method: 'get',
    params,
  })
}

export function getWaitCompleteCompanies (params) {
  return request({
    url: '/api/Platform/CompanyComplete/GetWaitCompleteCompanies',
    method: 'get',
    params,
  })
}

export function getEmployees (params) {
  return request({
    url: '/api/Platform/CompanyComplete/GetEmployees',
    method: 'get',
    params,
  })
}

export function completeCompany (data) {
  return request({
    url: '/api/Platform/CompanyComplete/CompleteCompany',
    method: 'post',
    data,
  })
}

export function completeEmployee (data) {
  return request({
    url: '/api/Platform/CompanyComplete/CompleteEmployee',
    method: 'post',
    data,
  })
}

export function combineCompany (params) {
  return request({
    url: '/api/Platform/CompanyComplete/CombineCompany',
    method: 'get',
    params,
  })
}

export function deleteCompany (cmpId) {
  return request({
    url: '/api/Platform/CompanyComplete/DeleteCompany',
    method: 'get',
    params: {
      cmpId
    },
  })
}

export function deleteEmployee (empId) {
  return request({
    url: '/api/Platform/CompanyComplete/DeleteEmployee',
    method: 'get',
    params: {
      empId
    },
  })
}